package test_achieve.courierapp.scenes;

import constant.Constant;
import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import org.openqa.selenium.By;
import test_achieve.courierapp.GrabOrder;
import test_achieve.courierapp.Oneself;

/**
 * Created by chenkuo on 2017/11/9.
 */
public class Basic {
    /**闪送员基础的一些场景封装*/

    /**前置：无
     * 步骤：登录、打开听单、获取余额*/

    @Given("^闪送员计费登录准备：(.*)$")
    public void 闪送员计费登录准备(String number) throws Throwable {
        GrabOrder grabOrder = new GrabOrder();
        grabOrder.loginCouier(number);
        Oneself oneself =new Oneself();
        oneself.进入闪送员主页面();
        oneself.openListening();
        grabOrder. updateLocation();
        grabOrder.getAccountBalance();
    }
}
